package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Baketest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface BaketestDao extends JpaRepository<Baketest,String> {

  @Query("select b from Baketest b where b.clqk =:clqk")
    List<Baketest> getBaketestsByClqk(@Param("clqk") String clqk);

  @Query("select b from Baketest b where b.scpc =:scpc ")
    List<Baketest> getBaketestsByScpc(@Param("scpc") String scpc);
}
